#ifndef MYLABEL_H
#define MYLABEL_H

#include <QWidget>
#include   <QLabel>

class myLabel : public QLabel
{
    Q_OBJECT
public:
    explicit myLabel(QWidget *parent = nullptr);
    //捕获事件
    //鼠标进入
    void enterEvent(QEvent *e )override;
//鼠标离开
    void leaveEvent(QEvent *e )override;
    //鼠标点击
    void mousePressEvent(QMouseEvent *e)override;
    //鼠标移动
    void mouseMoveEvent(QMouseEvent *ev) override;

    //事件的分发
    bool event(QEvent *e) override;
signals:

};

#endif // MYLABEL_H
